package com.xmtlxx.common.utils.push;

import com.xmtlxx.common.utils.push.config.PushConfig;
import com.getui.push.v2.sdk.ApiHelper;
import com.getui.push.v2.sdk.GtApiConfiguration;

public class PushHttpUtils {
    public static ApiHelper RestApi(){
        GtApiConfiguration apiConfiguration = new GtApiConfiguration();
        //应用配置
        apiConfiguration.setAppId(PushConfig.getAppId());
        apiConfiguration.setAppKey(PushConfig.getAppKey());
        apiConfiguration.setMasterSecret(PushConfig.getMasterSecret());
        apiConfiguration.setDomain(PushConfig.getDomain());
        // 实例化ApiHelper对象，用于创建接口对象
        ApiHelper apiHelper = ApiHelper.build(apiConfiguration);
        return apiHelper;
    }

}
